home *** CD-ROM | disk | FTP | other *** search
- The LP and SPOOLER programs are examples of the use of interprocess
- communications using the SPINT calls. The SPOOLER.PRG is run as a backgound
- process by entering "sys bp spooler.prg" from the cli, after the programs
- runs it creates a directory called SPOOL and then checks to see if any
- files exist in this folder. Any files in the folder are then printed in
- backgound and the file is delete from the SPOOL directory after it is
- finished. The SPOOLER program then looks for the next file(s) until all
- files have been printed. The SPOOLER program then puts itself to sleep and
- waits until a SPINT 0 wakes up it again. The LP program only does a
- trigger of the SPINT 0 to wake the SPOOLER program. By copying a file(s)
- to the SPOOL directory and then running the LP program the SPOOLER
- program will print the file(s).
-
- spooler.prg program to background print any files in the spool
- directory
- pr.g script file to copy file(s) to spool directory and run
- lp.prg
- lp.prg program to wake up the spooler.prg and start printing
- sq.prg program to check status of a file geing printed by the
- spooler.prg
- killlp.prg program to kill the lp background spooler.
- startlp.g script file to start the spooler.prg in background
-
-